decode forward url
allow null parameter for encode/decode URL methods