fix funtions.urlencodeChar type