Fix l10n so getTranslationLanguage always returns a string

Corrects #701
formatTimestamp now accepts timestamps as strings. (Maybe the received column of the inbox table in the database should be int rather than text)