encodeURIComponent with charset