Simpler version of magit-decode-git-path

This is implements the unquoting requested in #581, inspired by #850 and also shorter.