Fixed retrieving HTTP host, the filter_input is not working on all host environments.