Neatly format command arguments.

I was previously converting a list into a string, which was causing the
unicode indicator to show up in the keyboard shortcut list. This change
converts the list to a JSON string, which displays more neatly.