Can't add Custom Domain to Cloudflare Pages if it contain characters like "å"

If I try to setup custom domain with “å” in the domain name then it says “Please enter a valid domain.”, and if I try to convert the domain to get rid of the “å” character, meaning “xn–…”, then I get an error saying:

“An unknown error occured. Contact your account team or Cloudflare support: (Code: 8000000)

I am experiencing the same error when i try to add an domainname with å and ö in it.
Even if i use the translated version of the domain name www.xn–

I used to have this domain pointed from Cloudflare to github pages and that worked.
But now when i try to host the site on Cloudflare pages i get the same error trying to activate the domain inside Cloudflare pages.