Fix decoding via file access on Windows platform