Added to_path method to the allowed methods in constructor

This allows to pass a Pathname object to the constructor
Added a friendly exception message
test passing Pathname object to constructor
Merge pull request #219 from kabturek/patch-1

Added to_path method to the allowed methods in constructor