Add tests for RestView encoding stuff.
Use force_text for lazy_string serialization.