fix to do URI.escape for raw bytes (invalid URI chars, but exists)

Fix to try to parse with uri-escaped strings when URI.parse failed