Bugfix for Strings Ending with a chr==0 value