Bigfix: 'format' was used instead of 'type' in MidiFile.__init__().
Now uses context manager for temporary charset in MIDI files load and save.
Merge branch 'develop' of github.com:olemb/mido into develop