Add translation double encoding

Fixes an issue with Android; depends on commit 2c367a8975ea3a98119a57c6e182e3bdf1816963 and based on pull request #18