fix whitespace, url_path_join function