protected static CharSequence getTextFromURI(URI file) {
		BufferedReader in = null;
		try {
			in = new BufferedReader(new InputStreamReader(file.toURL().openStream(), "UTF-8"));
			String line;
			StringBuilder buffer = new StringBuilder();
			while ((line = in.readLine()) != null) {
				buffer.append(line).append('\n');
			}
			// Chomp the last newline
			buffer.deleteCharAt(buffer.length() - 1);
			return buffer;
		} catch(Exception e) {
			throw new RuntimeException("Something went wrong!");
		} finally {
			try { 
				in.close();
			} catch (IOException e) { }
		}
	}