More proper string output and escaping