remove some deprecations (there seems to be no style default for BAD_CHARACTER, though)