The string being asked to get the bytes from should be included in the error message.  This will provide context for the caller.