CLOUDSTACK-1302: Add cache mode to SQL upgrade file

This got lost in the previous commit

Not sure though if this is the right file, since this feature won't make it into
4.3, but there is no 4.4 file.
CLOUDSTACK-5227. Cannot pass Japanese characters as parameter values to an API.
During API check for control characters use pattern matching to avoid identifying all non-printable characters as control characters.