Unicode string category handling (Do I hate myself?)