Fixed the issue with encoding.