Fix various string-handling issues.

Converted more "printf" to "PrintString", changed several "Print*"
functions to "Get*" functions, and made some other minor improvements.
("PrintString" is still exhibiting some erroneous behavior.)