[C] Tidy up input validation on base64 encode/decode.
[C] Comments.