Use `String#force_encoding` to force utf-8 encoding during log writes

Here's a PR following the discussions on atmos/heaven#60.