Take a look here .
http://www.romanblack.com/encoder.htm
hope it helps
Victor