String given without the encoding mandated by a protocol/design/etc should be converted with the platform default encoding. After all it exists for a reason!
Java API for GitHub See http://github-api.kohsuke.org/ for more details