Filemeta json v8

Fixed the use of sprintf -> snprintf, and rebased.