StringIO: when initialized with empty string use its encoding.