This also avoid possible stack corruption (e.g. previously `tr -s '\400'' or similars lead to them). Reviewed and thanks to <pgoyette>!