Convert UNSECURE_RANDOM_STRING to a byte string.

This fixes the case where the native encoding contains characters
outside of the ASCII range (0 <= c <= 127). For example, the default encoding for Windows notion of 'en_US' is CP1252, which includes several letters outside of the ASCII range.