fix unicode handling in is_regular_file check - refs #2273