Update IO.R

just updated lines 325-336 for correcting base64 encoding. Although "caTools" package needed to be updated to encode column family correctly.