Fix fault when entering certain invalid characters (', ") into the
mime application chooser custom command entry.