HTTP: Trim whitespace from URL strings