Provide specific parameter bug fixes

Fix 1) AUTH_OPTIONAL_PARAMS reference in example handlers, 2) coding
utf-8 line, 3) Changed optional_params check to test for dict type.