Fix HEAD bucket request string problem.

Handle HEAD bucket string suffix with "/" will cause 500 internal 
server error problem. 
 
Closes-Bug: 1339538
Change-Id: I611afe581ca9587387bf5d69accd24bf5a84d0b3
Merge "Fix HEAD bucket request string problem."