Update select.php

Fix removing the last hyphen in option's label if the label ends with a hyphen, eg "- Select an option -" becomes "- Select an option" (the last hyphen is missing).

More info: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=32645