we can also have a path user/cache/...
tests added
Merge pull request #6507 from owncloud/enc_fix_getUser

[encryption] fix getUser Helper