Support Ruby >= 2.0, where iconv is no longer available

Fixes #17
Rename variable to avoid shadowing