Fix toJSON for belongsTo with string.