graphics: use Strings8/16 c_str() and empty()

.string() and .isEmpty() don't work in QPR2.

Change-Id: I8a903e8b5466adcb9c7b53ab7a4ebd8c02ef330e
20 files changed