I just tested with the glib's implementation an indented keys do work, although it's not explicit in the spec.
So you're right, we should keep `key.strip()`