fix for #771.

Fix /etc/protocols parsing.  Remove trailing newspace stored under some cases.