fixed encoding problem and added oe param