Minor tweak for UTF-8 handling in mask mode. Better safe than sorry.