Error while encoding (Windows)