Fix a minor problem with generator.writeRaw()