Convert a buffer (or buffer accepted value) to a string.