Made the tab, space and linebreak ansi characters case-insensitive. Resolves #522.