public static String removeFormatting(String line) {
                int length = line.length();
                StringBuffer buffer = new StringBuffer();
                for (int i = 0; i < length; i++) {
                        char ch = line.charAt(i);
                        if (ch == '\u000f' || ch == '\u0002' || ch == '\u001f' || ch == '\u0016') {
                                // Don't add this character.
                        } else {
                                buffer.append(ch);
                        }
                }
                return buffer.toString();
        }