Fix for Bug #5613, the way we were using the entity meant that it wasn't extracting
the strings as utf-8 before they were sent to the server