Sanitize path URIs when parsing. Fixes #21.