I did some quick testing with only alphanumeric characters. It appears the error occurs at 256 chars, so it appears the field limit is 255.
Since apps do not appear to have this limit, the best approach to this is to create a service manager app that handles the connection process including the entry of those strings and virtual device creation. Your strings can then be passed and stored in each virtual devices state object which can store larger quantities of data.