MDL-36399 LTI editing tool config breaks on Oracle.

Note that this fix will fail if the tool URL is longer than 1333
characters.