Bug 3194 - Faulty error message while initializing properties storage

Just improving error message when unable to find encoding for a string.
Fixes #3194.
Minor cleanup
styleguide: Clean up two trailing spaces
styleguide: Add a clause regarding string formatting