Changed replace regex to decodeURI