[mms] Fix regression where authetication was attempted with a non-null, empty string password.
serialize using json for better efficiency