Remove trailing LF characters from short host names too.

External commands like 'ping', 'traceroute', etc. didn't work properly with Safari when short hostname was used to access the web-ui (for ex. just "router").
Asus's code applies an offset of 9 bytes to the hostname, before scanning for its end. This does not seem to make much sense... If host name is too short, the LF character gets through and this breaks the external commands execution when using Safari. Firefox, interestingly, does not need this patch.