Prefer ScopedUtfChars where possible

Minor refactor of input-related files to use safer ScopedUtfChars
constructs.

Bug: none
Test: build only
Change-Id: I5cf4132bc8460ee92a30b9611d8e7fce98438420
3 files changed