Add helper function to get a filesize
Don't try to import empty file

See bug #9578.
Bug #9578: Don't import dot folders

Dot files are still imported though ...
Fix #9578: This time also for dot files
Don't write metadata on startup. Stupid bug ...
usermanual: a bit of this and that
Merge branch 'master' of ssh://github.com/darktable-org/darktable
Allow valid UTF-8 sequences in the metadata editor

The offending code was added in response to bug #8744. GTK is documented to
expect valid UTF-8 sequences as input, and is free to crash on invalid input
otherwise. The original fix, however, simply replaced non-ASCII characters with
dots which is clearly not accept able for someone named like me. This change
instead skips this replacement when the string is a valid UTF-8 sequence.

The g_utf8_validate must be invoked without the size being passed. If we pass
around the expected size, then this function fails because it hits the first
NUL byte, a terminator, prior to hitting the length limit, and this is
documented to return false.