gnmi: Use more precise/efficient encoding funcs in strVal
gnmi: Use more precise/efficient encoding funcs in strVal

Change-Id: Icb6f368bb9c9de6c853209c4db2dbe6edfab6d69

aristanetworks/goarista,aristanetworks/goarista