Add test cases for non-utf8 paths

closes: #9406