Fixed bugs where pads became unsynced. Notably having & in validchars would sometimes break json. Everything seems to be working.