Fix compiler warnings for "unsafe" C string functions

- Strip out unused code instead of maintaining it
- Add manual test steps for exercising code changed by this check-in