Bugfix: filenames w/ special characters and permissions

Filenames containing special characters like '%' won't stat correctly because they've already been sanitized and the current working directory could potentially be off.

I've added a test case for this but it's kind of gross. I didn't see a way to get at file permissions from the RPM object, but maybe I'm just missing something. Feedback on making it cleaner would be appreciated :-)