Fix generated snomask mode change string being incosistent with the input in certain cases, spotted by @Robby-