Bug fixed

If a charset contains a character multiple time, the library will
generate random string using the charset as is.
This commit fixes this issue