Call encode if MultiJson doesn't have dump