Fixed new file permissions
Combined and adapted the following commits from master:
dce5c5057c85a2d42e161f0dbd2dc6cd26c17a32
c6db82bcb2d61e34e1c8bfb87aade25c7fed9093
FIXED: [ 395609 ] New Text File is created with 600 (-rw-------) permissions
BUG: 395609
Differential Revision: https://phabricator.kde.org/D19277