Strip whitespace from around submitted paths

This is done by canonicalization anyway, but this means that we can
show raw paths without the whitespace when redisplaying the form
with errors.