Fix StringData::substr with single argument

Original version had an overflow bug