Content Languages: prevent saving white spaces for url language code and Language Tag

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33175&start=0