Refs #575: Fixed issue in assigning metadata to S3 object through S3Object.write().

Signed-off-by: Gautam Sathe <gautam@hemisphereinteractive.com>
Merge pull request #578 from matuag/bug-575

Refs #575: Fixed issue in assigning metadata to S3 object