quickfix to avoid saving newline into leveldb