Fixes issue with implicit conversion of pathname into string.
Merge pull request #301 from pulibrary/fix_pathname_string_conversion

Fixes issue with implicit conversion of pathname into string.