Fixed bug with ascii characters being improperly encoded;