[ticket/12291] Adjust code to correctly parse full icons and smilies paths

Backward compatibility is magically keeped with no changes to the function
smiley_text() in includes/functions_content.php.

PHPBB3-12291