check errors on decodeURIComponent