fix MatchQuery('path', ...) for unicode value

I found this when trying out the new mpdstats plugin. There a `unicode(...)` path is passed to `MatchQuery` so this change was necessary for me to get any results. However I do not know if this is the most general fix, so feel free to nudge me in the right direction.