implemented method to encode Value object as base64 string and vice versa