public static String readDodgyXML(String filename) throws IOException
	{
		InputStream in = new FileInputStream(new File(filename));
		StringBuffer sb = new StringBuffer();
		BufferedReader br = new BufferedReader(new InputStreamReader(in));

		String line = br.readLine();

		// Ignore first line and replace it with the utf-8 one.
		sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");

		while ((line = br.readLine()) != null)
		{
			byte[] b = line.getBytes();

			for (int i = 0; i < b.length; i++)
			{
				if (b[i] != 0)
				{
					sb.append((char) b[i]);
				}
			}
			sb.append("\n");
		}
		return sb.toString();
	}