prevent single-line scripts from breaking

when stripping out `# encoding: ???` lines, uncoded assumes a script
will have more than 2 lines and tries to iterate over them even when
they don't exist.
Merge pull request #8 from nsfmc/oneliner

prevent single-line scripts from breaking