quoted encode & decode