Fix data encoding for resource timing plugin.