fixed: script cannot be run from arbitrary directory
refactoring: parsing options
refactoring: options internal usage
improved: Iconv usage with Ruby v1.9.x