Fixed unicode issue when reading unicode from disk

Previously, this was handled correctly by yaml. Now, however, we read the stream
ourselves and thus must take care of it ourselves as well.
centralized default encoding