[Core] fix colour stripping (closes #54)