Fix bug where null bytes were being included in fixed strings