pathname does not response to :to_str