Removed unused test.
Bugfixed encoding/decoding errors.
Fixed the non ascii file decoding test for python3.