Added encode/decode functions for signed bytes (in midifiles) with tests.