convert url to handle spaces