Account for null terminator in USERHOST

Slight oversight. Also optimise things a little.