Correct warning formatting
Fix spurious xdr debug logging
Handle invalid file names (Windows) (fixes #238)