added unsupported format test
added tests for encoding broken file and io.Reader