Ensure path gets coerced to a string