PasswordTextbox input and BLE

Good day, I am trying to figure out how to send the user's entered password to my esp32 using BLE. This is what I have:
image

This method worked for other data I sent over BLE, but this is the error I get when making use of the data within the password:

image

Help would be greatly appreciated and thanks in advance!