Fix double encoding.