universal js encode name