change some string conversions to reduce compiler warnings