Reduce warnings
- add casts where byte-buffers are used as strings, or vice-versa
- add casts where strings are assigned to byte-buffers
- cast lengths of string from size_t to int for printf
- cast when passing a string in to a byte-buffer
- simplify string-length-logic: we know the length of a NULL string, no need to ask strlen about it