fix: should convert argument of encodeURI function to the string.