[Bug 10011]

Convert argument Pathname if required, throw TypeError if conversion fails