[Bug 10011]

Convert argument Pathname if required, throw TypeError if conversion fails
I think better to add another testcase with String args rather than replacing this..