Explicitly convert pathname to string to avoid TypeError in Ruby 2.0.
Merge pull request #45 from cnrk/master

Explicitly convert pathname to string to avoid TypeError in Ruby 2.0.