Add support of X-Delete-At and X-Versions-Location
Add metadata length check and multibyte use