Force pathname to a string (refs GH-178)