feature #764232 by Antoine Lafontaine, jajathejazzcat: Added hook_url_outbound_alter() to avoid hacking core.