improve rangefield.hpp

Signed-off-by: Jack <jack.wgm@gmail.com>
add encode_base64

Signed-off-by: Jack <jack.wgm@gmail.com>