Fix aws escape

I was working with objects whose key contains a “directory” prefix and the path separator was being escaped so that the object public_url was of the form `directory%2Fkey` when it should be `directory/key`, this pull request permits forward slash characters in the keys when escaping them. As a bonus I Unicode normalised the input key too.