You get the creation script for it (from source control or the developers), remove the WITH ENCRYPTION line and then run the modified ALTER FUNCTION
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability