Rework handling of environment to not assume UTF-8 encoding

Merge request reports

Loading