fix $length default in utf8_substr functions, set iconv internal encoding

- fixes utf8_substr so that it doesn't return empty strings when there is no length specified
- set iconv internal_encoding when using iconv
- removed explicit set of encoding on mb_strpos because already set by mb_internal encoding
- fixing utf8_substr fixes blank image thumbnails in image manager