[PATCH 1/6] charset: Add support for calculating bytes occupied by a u16 string