fixed encoding of result.source