Minor code hardening:  Verify the final bytes of the string are actually accessible before trying to use them.
Minor code hardening:  Verify the final bytes of the string
are actually accessible before trying to use them.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase