Remove trailing control characters and spaces before parsing a URL
Created attachment 288611 [details] Patch
http://trac.webkit.org/changeset/205824