added a simple UNIX encoder