dispatch_connection: normalise spaces

some clients seem to send excessive whitespace, which upsets e.g.
cyanite, so normalise it like we do with dots already