private String readStringAMF0() throws EncodingException
	{
		int length = (readByteAsInt() << 8) + readByteAsInt();
		if (length == 0)
			return "";

		byte[] data = readBytes(length);

		// UTF-8 applicable?
		String str;
		try
		{
			str = new String(data, "UTF-8");
		}
		catch (UnsupportedEncodingException e)
		{
			throw new EncodingException("Error parsing AMF0 string from " + data);
		}

		return str;
	}