Added codecs to open file, as default does not work on Windows.