Fixed issue with string encoding.