properties: escape leading and trailing spaces

Otherwise Mozilla’s parser will “eat” them.