Fix Javadoc tag.
Extract method to generate string of allowed characters.