[automerger skipped] Replace string functions with safe alternatives am: cb7dde1668 -s ours am: 311022a895 -s ours am: c30bc16534 -s ours

am skip reason: Change-Id Ifa074b8c9db74966ed0a500bb8e063a8d4d870c4 with SHA-1 cb7dde1668 is in history

Change-Id: Ic663e48b0c0a8f87966a5085b93b20769145e9d6