my 1st pull request

1) all code wrapped in method
2) replaced iconv to String#encode(iconv depricated in 1.9.3)
3) rewrote code in bin/bashim