Characterset for a literal is missing in the routine's definition in information_schema.routines.
1. create routine with explicit characterset _utf8mb4 for default varchar value
2. select definition record in information_schema.ROUTINES
Column ROUTINE_DEFINITION shows routine definition as
Characterset _utf8mb4 is missing.
This makes it impossible to write a custom export for specific routines.
No workaround found so far.
I'm working with 5.4.11
10.5.4 shows same behavior.