Merged all libraries source code
Fix up the encoding issues (Java fails to encode the string if it contains characters outside the default charset - but we already have the raw data, no need to convert it)