Change the decodeURI to be compatible with more encodes.