Added support for string encodings