[fix] [29909] Creating proper SEF suffixes in menu items

Same as https://github.com/joomla/joomla-cms/pull/640 but against staging, rebased and codestyle fixed.

TrackerItem: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29909