cleans up invalid UTF8 characters in request URI and headers