generic base256 encoder