truncate up to null bytes by default