fix timestamp string length being counted wrong