Changes:

Work on scanlines(),
Fixed fallback encoding for scanline()
(locale.getpreferredencoding(False), not sys.getdefaultencoding(),
Update README.md with correct fallback