reimplement url(http) resolve handling invalid character