Fix generate string to not need to call encode
Merge pull request #512 from elyezer/fix-generate-string

Fix generate string to not need to call encode