Encode / decode REALs