base: Don't throw exception for valid netstrings.
Add more unit tests.