Support toggling between character and codepoint

 * See LT-13359.

Change-Id: Id627bd8ec40f2da33a5c30c4eaa2cb2be2746821