Fix base64 doc: replace println by println!

and use is_ok and is_some to unclutter the code