more cross-platform test fixes for encoding and paths