deal with embedded unicode properly