fix: consistent usage of bitmask operations on unicode functions