Removes non utf-8 encoded parts from the url