com_ajax cannot access modules with dashes in their name

This PR adds support for modules with a dash in their name.

Tracker item at http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=32693