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. 

This changes the behavior of `uncoded` to iterate over at most two lines.