Encode output using utf-8

When yamltodb is used with -u or printed to a terminal, there is no problem but if I try to output it into a file or a pipe, I have encoding problems. This quick and dirty patch encodes the output in utf-8.