encoder.js :: account for offset when encoding numbers