Updated the ConvertTo-Sid function to return a proper SecurityIdentifier, this resolves a problem where ConvertTo-AccountName doesn't work.