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