Add more string functions required by tcpdump with packet memory safety.