It is tricky. In the kerning table we could escape it like "\ " (backslash space) but that would be hard to read.
Or perhaps "\s"? As in regex it "matches whitespace".
Another way would be to use a double character, something legible like "!!"
I'm not sure it would be practical in glyph images, that would probably require some color coding, like "red indicates width".