fix sails converted rid strings