CLC-1075 Force uid to be a string to prevent SQL error