Switched to encoding lib to easily switch between different iconv implementations.