Issue cased recursion while user call assert* functions.
fix bug with assets. calling assets function cause recursion
- fixed bug with charset encoding for database connection
Took this change from another pull request, thanks for submitting it, didn't see this until I had already merged the other one. Let me know if I missed something!