Fix unicode surrogate pair splitting