Corrected a bug in ResourceContentAsString class