fix parsing of escaped spaces