Fix Illegal invocation error when using aliased window.btoa or window.atob