create hyperlink in outlook 2010 vba so blank spaces don't break the link

Hi,
When I receive an email with a hyperlink sent from a MAC, the path does not work on my PC. So I wrote a code that replaces the MAC terminology with PC terminology.  The code works perfectly.  But now I realize when I get a MAC link sent to me that has empty spaces between words, the new PC link is broken at the first empty space.  I thought the solution would be to replace the empty spaces with "%20". This works perfectly except ALL the spaces in the content of the email are filled with "%20" and makes the email unreadable. I thought the solution would be to replace the empty spaces with "%20" in white font so the "%20" would be "hidden" against the white background throughout the email but I don't know the code to replace empty spaces with a white "%20".  I'm open to any solutions.
Thank you.
Here is the macro (Outlook 2010) used when receiving MAC hyperlinks in email and converts it to PC hyperlinks.
Sub SwitchURLs()
Dim olItem As MailItem
On Error Resume Next
Set olItem = ActiveExplorer.Selection.Item(1)
With olItem
    .Body = Replace(.Body, "afp://xinet/", "\\hscreative\")
    .Body = Replace(.Body, "file://localhost/Volumes/", "\\hscreative\")
    .Body = Replace(.Body, "/", "\")
    .Body = Replace(.Body, " ", "%20")
     End With
 End Sub
CadberryAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QlemoBatchelor, Developer and EE Topic AdvisorCommented:
The above will also destroy HTML formatting, but if you do not care about that ...
Replacing all spaces by %20 is no good idea

For correct handling, you'll need to know where the link ends. The Mac needs to send something along to allow the link to have visible spaces, as this is no allowed link path, even in Linux or MacOS.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.