Update input.php

Tracker: #31786
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31786&start=0
Incorrect variable name used for the user agent string.
Merge pull request #1764 from zero-24/patch-32

get_html_translation_table requires encoding value for PHP 5.4