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

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

Change-Id: I2d2316a0310afa6a2176ebc2e91cdc61b767a81c