Review the usage of apostrophes in error messages Closes GH-5590
Adjust test for notice->warning change
Avoid signed integer overflow in string offset check Cast to size_t before performing operations instead of afterwards.