of: Fix overflow bug in string property parsing functions