Don't double-encode extended characters in relative paths

Fixes #287