Fixed a bug where spaces in the url would cause the url to be cut off.