Make convert_to_url_pattern more explicit