Fix issue with \247 color escaping char, other small improvements