handle invalid utf8 characters in the request uri