kvm: fixed word<-->textattr conversions