Convert file_get_contents() result to valid utf8

I had to add this conversion to get my code running properly. Maybe someone else might find it useful too.