Removed unnecessary use of encode