fixed bug in TrodeSpike encoding decoding