CONFIGURE: Add basic detection for iconv

Based entirely on what our tools do
COMMON: Add a function for converting strings using iconv
CONFIGURE: Allow defining the prefix for iconv
Merge pull request #1093 from bgK/iconv

COMMON: Add a function for converting strings using iconv