always take unencrypted size
improved unit tests
Merge pull request #9453 from owncloud/enc_fix_wrong_file_size

[encryption] always take unencrypted size