Fixes error when uploading not allowed files
Merge pull request #514 from tagliala/fix-escape-error

Fixes error when uploading not allowed files