Good start on a BER encoder. Has integer support.