Extra functions for url manipulation.