(bug 4062) Allow other random character sets in rand_chars
(bug 4062) handle invalid charsets
Merge pull request #479 from anall/featue/Bug4062-rand_chars

(bug 4062) Allow other random character sets in rand_chars