Call to_s on pathname (Ruby 1.9 issue).