Add spec for rb_str_encode with the same encoding
Return duplicate when encoding is the same