Set buildpack.log to flush each write
Use correct encoding for empty string

String.new produces an empty string which is encoded with ASCII-8BIT
rather than UTF-8. Use '' instead since this is encoded with UTF-8.

The net result is that logging certain hashes now produces nice YAML
rather than YAML containing binary.
debugging
debugging