Text this: Average Achievable Rate Maximization for RIS-Assisted UAV Communication Systems