fix serialization for key with '.' in it