Added functions for url and url-path encoding/decoding