Fixed bug in Str::fromJSON().