Fixed: 'ActionView::Template::Error (invalid byte sequence in UTF-8)' when rendering log messages with invalid characters.