Read UTF-8 data as UTF-8

You have UTF-8 data that you read during configuration but it might be read as ASCII on systems that use LC_ALL="C". This is the case with configuration scripts such as ansible. My patch is a compatible way of opening UTF-8 as UTF-8 at all times. And yes, this is an actual error for us otherwise.