libcollectdclient: Fix off-by-one error when reading the username.