Message adaptation based on network or terminal capabilities