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>