Fixes access to block/boundary names given material property

(closes #4420)
A name is a string. Why are you using a ostringstream to convert a string to a string?