Added conversion to and from base64