fix for setAllowableCharacters