There's a character in there that Write doesn't like. Try this instead:
f.Write Replace$(strmypage, ChrW(9660), "")