Implement encodePath
Migrate to encodePath
Encode current trashbin directory
Add unit test
Merge pull request #3943 from owncloud/encode_uri_component

Add path encoding to public API.