Fix a major plStringStream bug, and add an SSO-like optimization to it