further sanitization in preparation for revamp
streamlined text rendering (fixes #2)