Fix sequence of series in multi-series file and unicode encoding issues.

Moreover, added source encoding to all python files.