added bas64 encoding options for binary files