Implement `key` and `value` sanitisation.
Extend `serialise` test coverage