Moved pathname-oriented methods to Pathname class.