handle Array and Pathname convertible objects