console: terminate connection on certain bad requests.

This patch ensures that the console terminates a connection when
it detects that an HTTP request was entered as a command, or that
the command contains an invalid UTF-8 sequence.

BUG=17584992

Change-Id: Iadbad75101211263d7deff73caf685a2481d8820
Merge "console: terminate connection on certain bad requests."