Tab-completing in a directory with Unicode heiroglyph crashes ghci
With a file called 𓅖.hs in `C:\Users\acfoltzer`, the following in `cmd.exe`:
```
C:\Users\acfoltzer>chcp 65001
Active code page: 65001
C:\Users\acfoltzer>ghci
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
Prelude> :l C:\cygwin\home\acfoltzer\<TAB>
ghc.exe: panic! (the 'impossible' happened)
(GHC version 7.10.1 for i386-unknown-mingw32):
Enum.toEnum{Word16}: tag (78166) is outside of bounds (0,65535)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```
Here, I'm setting the code page first according to the various bits of folk wisdom on the Internet about getting Unicode to properly display in `cmd.exe`. I don't get this crash with a Cygwin terminal, but rather see `??.hs`.
I came across this because I was getting the same exception in the Cryptol REPL, so I suspect it's not unique to GHCi, but is rather something fishy in base.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 7.10.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | hvr |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Tab-completing in a directory with Unicode heiroglyph crashes ghci","status":"New","operating_system":"","component":"GHCi","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.10.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":["hvr"],"type":"Bug","description":"With a file called 𓅖.hs in `C:\\Users\\acfoltzer`, the following in `cmd.exe`:\r\n\r\n{{{\r\nC:\\Users\\acfoltzer>chcp 65001\r\nActive code page: 65001\r\nC:\\Users\\acfoltzer>ghci\r\nGHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help\r\nPrelude> :l C:\\cygwin\\home\\acfoltzer\\<TAB>\r\nghc.exe: panic! (the 'impossible' happened)\r\n (GHC version 7.10.1 for i386-unknown-mingw32):\r\n Enum.toEnum{Word16}: tag (78166) is outside of bounds (0,65535)\r\n\r\nPlease report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\n}}}\r\n\r\nHere, I'm setting the code page first according to the various bits of folk wisdom on the Internet about getting Unicode to properly display in `cmd.exe`. I don't get this crash with a Cygwin terminal, but rather see `??.hs`.\r\n\r\nI came across this because I was getting the same exception in the Cryptol REPL, so I suspect it's not unique to GHCi, but is rather something fishy in base.","type_of_failure":"OtherFailure","blocking":[]} -->
issue