uri encode url paths
reimplement deprecated ruby 1.9.3 URI.escape
remove hopefully unnecessary 1.8.7-incompatible force_encoding