Add a default search pattern.
Expand empty serialized search pattern () to an empty string, instead of no string.
Change some files to utf-8.
Simplify button callbacks.