Faulty error message while initializing properties storage

Just improving error message when unable to find encoding for a string.

Fixes #3194