fix bug in encode object key with '/'