Backport decode object names with spaces

Backport of #104 to 1.7.x