Fixed encoding bug that occured in ST3