function utf8_strrpos($haystack, $needle) {
		if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'mbstring') {
			return mb_strrpos($haystack, $needle, 'utf-8');
		} elseif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['t3lib_cs_utils'] == 'iconv') {
			return iconv_strrpos($haystack, $needle, 'utf-8');
		}

		$byte_pos = strrpos($haystack, $needle);
		if ($byte_pos === FALSE) {
			return FALSE;
		} // needle not found

		return $this->utf8_byte2char_pos($haystack, $byte_pos);
	}