add --limit=N, fix output encoding
Merge pull request #4 from brianolson/master

add --limit=N, fix output encoding