Fix host truncation to work correctly

Benjamin Mako Hill || Want to submit a patch?