Code:
For index As Integer = 1 To banned_ext_chars.Length - 1
What's the index of the backslash in your array of banned characters?