Fix UTF-8 handling for shared queries

Also changed the forms tests to make them faster.

The EMAIL_PORT and EMAIL_HOST were removed from settings because they
are not used by the console email backend.

Signed-off-by: Kevin Murphy <murphyke@email.chop.edu>
Merge pull request #213 from murphyke/issue-212

Fix UTF-8 handling for shared queries